.modalWrap {
  z-index: 1000;
  background-color: rgba(0, 0, 0, .5);
}
.modal {
  position: absolute;
  top: 20%;
  left: 50%;
  box-sizing: border-box;
  margin-left: -150px;
  padding: 15px;
  width: 300px;
  border-radius: 10px;
  // overflow: hidden;
  background: #fff;
  :global {
    .am-modal-header {
      margin-top: 5px;
      .am-modal-title {
        font-size: 16px;
        font-weight: bold;
      }
    }
    .am-modal-close {
      // top: 12px;
      right: 0;
    }
  }
}
.content {
  // background: #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 5px;
  .text {
    text-align: left;
  }
  .contentMain {
    position: relative;
    width: 100%;
    height: 40px;
    // inputWrap 和 codeContent使用重叠的绝对定位，为了避免ref.focus聚焦之后每次光标都定位到最前面的问题
    .inputWrap {
      position: absolute;
      top: 0;
      left: 20px;
      // width: 0;
      height: 20px;
      overflow: hidden;
      z-index: 5;
      :global {
        input {
          color: transparent;
        }
      }
    }
    .codeContent {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 10;
      display: flex;
      justify-content: space-around;
      width: 100%;
      background: #fff;
      .codeItem {
        width: 32px;
        height: 32px;
        line-height: 32px;
        text-align: center;
        border-bottom: 1px solid @border-light;
        font-size: 18px;
        color: @main-text-color;
      }
    }
  }
  .restart {
    margin: 24px 0 5px 0;
    height: 24px;
    line-height: 24px;
    font-size: 14px;
    color: @link-color;
    cursor: pointer;
    &.delay {
      color: @auxiliary-color;
    }
  }
}